upgrade: update dependency dart to v3.6.0 #614
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.5.4
->3.6.0
Release Notes
dart-lang/sdk (dart)
v3.6.0
Compare Source
Language
Dart 3.6 adds digit separators to the language. To use them, set your
package's [SDK constraint][language version] lower bound to 3.6 or greater
(
sdk: '^3.6.0'
).Digit separators
Digits in number literals (decimal integer literals, double literals,
scientific notation literals, and hexadecimal literals) can now include
underscores between digits, as "digit separators." The separators do not change
the value of a literal, but can serve to make the number more readable.
Separators are not allowed at the start of a number (this would be parsed as an
identifier), at the end of a number, or adjacent to another character in a
number, like
.
,x
, or thee
in scientific notation.to perform type inference on the operand of a
throw
expression has beenchanged from the "unknown type" to
Object
. This makes the type system moreself-consistent, because it reflects the fact that it's not legal to throw
null
. This change is not expected to make any difference in practice.Libraries
dart:io
Breaking Change #52444: Removed the
Platform()
constructor, whichhas been deprecated since Dart 3.1.
Breaking Change #53618:
HttpClient
now responds to a redirectthat is missing a "Location" header by throwing
RedirectException
, insteadof
StateError
.dart:js_interop
JSArrayBuffer
,JSDataView
, and concrete typed arraytypes e.g.
JSInt8Array
.length
and[]
/[]=
operators toJSArray
.toJSCaptureThis
sothis
is passed in from JavaScript to thecallback as the first parameter.
from
method onJSArray
to create aJSArray
from a givenJavaScript iterable or array-like object.
Tools
CFE
DOWN algorithms in the CFE are changed to match the specification
and the corresponding implementations in the Analyzer. The upper and
lower closures of type schemas are now computed just before they are
passed into the subtype testing procedure instead of at the very
beginning of the UP and DOWN algorithms.
Dart format
this.
orsuper.
.as
andif
clauses.Wasm compiler (dart2wasm)
dart.library.js
is now false on conditional imports indart2wasm. Note that it was already a static error to import
dart:js
directly (see #55266).
Pub
Support for workspaces. This allows you to develop and resolve multiple
packages from the same repo together. See https://dart.dev/go/pub-workspaces
for more info.
New command
dart pub bump
. Increments the version number of the currentpackage.
For example:
dart pub bump minor
will change the version from1.2.3
to1.3.0
.New validation:
dart pub publish
will warn if yourgit status
is notclean.
New flag
dart pub upgrade --unlock-transitive
.dart pub upgrade --unlock-transitive pkg
, will unlock and upgrade all thedependencies of
pkg
instead of justpkg
.Analyzer
use_truncating_division
][use_truncating_division] lint rule.omit_obvious_local_variable_types
][omit_obvious_local_variable_types] lint rule.specify_nonobvious_local_variable_types
][specify_nonobvious_local_variable_types] lint rule.avoid_futureor_void
][avoid_futureor_void] lint rule."invert conditional expression".
Configuration
📅 Schedule: Branch creation - "every weekend" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.